<template>
  <model-dialog
    :title="dataDictName+'添加'"
    :visible.sync="dialogVisible"
    width="900px"
    :show-close="false"
    @close="dialogVisible=!dialogVisible">
    <data-dict-editor :code="dataDictCode" :name="dataDictName" />
  </model-dialog>
</template>

<script>
export default {
  components: {},

  data() {
    return {
      dialogVisible: false,
      dataDictCode: '',
      dataDictName: ''
    }
  },
  watch: {
  },
  created() {

  },
  methods: {
    init(code, name) {
      this.dataDictCode = code
      this.dataDictName = name
      this.dialogVisible = true
    }
  }
}
</script>
<style lang="scss" >

</style>

